package com.kznnc.data_structure.structure.queueStructure;

import java.util.PriorityQueue;

/**
 * @Description  优先队列
 * @Author houchenkai
 * @Created Date: 2021/4/9 16:19
 * @ClassName
 */
public class PriorityQueueStructure {


    public static void main(String[] args) {
        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.add(1);
        priorityQueue.add(3);
        Integer peek = priorityQueue.peek();
        priorityQueue.remove(1);
        System.out.println(peek);
    }
}
